import axios from 'axios'

const baseUrl = 'data-screen'

// 排行榜
export function getRankBoard () {
  return axios.request({
    url: `${baseUrl}/getRankBoard`,
    method: 'get'
  })
}

// 销售额
export function getAnnualSale () {
  return axios.request({
    url: `${baseUrl}/getAnnualSale`,
    method: 'get'
  })
}

// 周销售额
export function getWeekSale () {
  return axios.request({
    url: `${baseUrl}/getWeekSale`,
    method: 'get'
  })
}


//新增当天销售额
export function insertDaySale (data) {
  return axios.request({
    url: `${baseUrl}/insertDaySale`,
    data,
    method: 'post'
  })
}